home *** CD-ROM | disk | FTP | other *** search
/ Micromanía 92 / CDMM92_1.ISO / SOF 2 SDK / sof2sdk-101.msi / _92D6AC311BB48EBA344BBABC89DA6AB0 / _B995EBA12D7F412B91D03ED1C7591169 < prev    next >
Encoding:
Text File  |  2002-04-04  |  5.0 KB  |  276 lines

  1. {
  2.     \\ Server Information Popup Menu
  3.  
  4.     menuDef 
  5.     {
  6.         name        "findplayer_popmenu"
  7.            visible        0
  8.            fullscreen    0
  9.         rect        0 0 640 480
  10.         focusColor    .49 .56 .27 1
  11.            style        WINDOW_STYLE_FILLED
  12.            border        1
  13.         popup
  14.  
  15.         onOpen 
  16.         { 
  17.             uiScript FindPlayer ; 
  18.             setfocus namefield ;
  19.         }
  20.         onESC 
  21.         { 
  22.             close findplayer_popmenu ; 
  23.         }
  24.  
  25.         itemDef
  26.         {
  27.             name        window
  28.             rect        0 0 640 480
  29.             style        WINDOW_STYLE_FILLED
  30.             backcolor    0 0 0 .5
  31.             visible        1
  32.             decoration
  33.         }
  34.  
  35.         itemDef 
  36.         {
  37.             name        window
  38.                rect        150 40 435 440
  39.             background    "gfx/menus/backdrop/requestor"
  40.             style        WINDOW_STYLE_SHADER
  41.             visible        1
  42.             decoration
  43.         }
  44.    
  45.         itemDef 
  46.         {
  47.             name        window
  48.             text        "Find Player"
  49.             style        WINDOW_STYLE_FILLED
  50.             textfont    "hud"
  51.             textscale    .53
  52.             rect        167 62 356 33
  53.             textalign    1
  54.             textalignx    160
  55.             textaligny    8
  56.             forecolor    .12 .14 .08 1
  57.             backcolor    0 0 0 .25
  58.             visible        1
  59.             decoration
  60.         }
  61.  
  62.         itemDef
  63.         {
  64.             name        window
  65.             style        WINDOW_STYLE_EMPTY
  66.             text        "Name"
  67.             textfont    "hud"
  68.             textscale    .43
  69.             rect        184 105 215 32
  70.             textalign    ITEM_ALIGN_LEFT
  71.             textalignx  0
  72.             textaligny    2
  73.             forecolor    .12 .14 .08 1
  74.             visible        1
  75.         }
  76.  
  77.         itemDef 
  78.         {
  79.               name        namefield
  80.               type        ITEM_TYPE_EDITFIELD
  81.             style        WINDOW_STYLE_FILLED
  82.             cvar        "ui_findplayer"
  83.             maxChars    20
  84.               rect        224 105 195 20 
  85.               textalign    ITEM_ALIGN_LEFT        
  86.               textalignx    2
  87.               textaligny    2
  88.             textfont    "hud"
  89.             textscale    .43
  90.             forecolor    1 1 1 1
  91.             backcolor    0 0 0 .25
  92.               visible        1 
  93.  
  94.             action 
  95.             { 
  96.                 play "sound/misc/menus/select.wav" ; 
  97.                 ui_script FindPlayer 
  98.             }
  99.         }
  100.  
  101.         // LIST OF SERVER NAMES
  102.  
  103.         itemDef 
  104.         {
  105.             name            servername_feeder
  106.             rect            175 132 340 85
  107.             type            ITEM_TYPE_LISTBOX
  108.             style            WINDOW_STYLE_FILLED
  109.             elementwidth    120
  110.             elementheight    15
  111.             textfont    "hud"
  112.             textscale    .43
  113.             textaligny        -13
  114.             elementtype        LISTBOX_TEXT
  115.             feeder            FEEDER_FINDPLAYER
  116.             border            1
  117.             forecolor        1 1 1 1
  118.             backcolor        0 0 0 .25
  119.             bordercolor        0 0 0 1
  120.             outlinecolor    .23 .26 .17 1
  121.             visible            1
  122.             columns            1    2 40 30
  123.          
  124.             doubleClick
  125.             {
  126.                 ui_script FoundPlayerJoinServer 
  127.             }
  128.         }
  129.  
  130.         // LIST OF SERVER STATUS INFORMATION
  131.  
  132.         itemDef 
  133.         {
  134.             name            serverInfoList        
  135.             rect            175 230 340 130
  136.             type            ITEM_TYPE_LISTBOX
  137.             style            WINDOW_STYLE_FILLED
  138.             elementwidth    120
  139.             elementheight    15
  140.             forecolor        1 1 1 1
  141.             backcolor        0 0 0 .25
  142.             border            1
  143.             bordersize        1
  144.             bordercolor        0 0 0 1
  145.             textaligny        -12
  146.             textfont    "hud"
  147.             textscale    .43
  148.             elementtype        LISTBOX_TEXT
  149.             feeder            FEEDER_SERVERSTATUS
  150.             visible            1
  151.             columns 4    2 40 20
  152.                     40 40 10
  153.                     90 40 10
  154.                     135 40 24
  155.  
  156.             notselectable
  157.          }
  158.  
  159.         //    BUTTON
  160.  
  161.         itemDef 
  162.         {
  163.             name        exit_button
  164.             text        "Exit"
  165.             type        ITEM_TYPE_BUTTON
  166.             style        WINDOW_STYLE_FILLED
  167.             rect        193 378 60 26
  168.             textalign    10
  169.             textalignx    13
  170.             textaligny    4
  171.             textfont    "hud"
  172.             textscale    .43
  173.             forecolor    .12 .14 .08 1
  174.             backcolor    0 0 0 0
  175.             border        1
  176.             bordercolor    0 0 0 1
  177.             visible 1
  178.             
  179.             action 
  180.             {
  181.                 play "sound/misc/menus/select.wav" ; 
  182.  
  183.                 close findplayer_popmenu ; 
  184.             }
  185.             mouseEnter 
  186.             { 
  187.                 play "sound/misc/menus/hilite1.wav" ; 
  188.                 setitemcolor exit_button backcolor .12 .14 .08 1
  189.                 setitemcolor exit_button forecolor .49 .56 .27 1
  190.             }                 
  191.             mouseExit 
  192.             { 
  193.                 setitemcolor exit_button backcolor 0 0 0 0
  194.                 setitemcolor exit_button forecolor .12 .14 .08 1
  195.             }
  196.         }
  197.  
  198.         itemDef 
  199.         {
  200.             name        search_button
  201.             text        "Search"
  202.             type        ITEM_TYPE_BUTTON
  203.             style        WINDOW_STYLE_FILLED
  204.             rect        316 378 60 26
  205.             textfont    "hud"
  206.             textscale    .43
  207.             textalign    0
  208.             textalignx    7
  209.             textaligny    4
  210.             forecolor    .12 .14 .08 1
  211.             backcolor    0 0 0 0
  212.             border        1
  213.             bordercolor    0 0 0 1
  214.             visible 1
  215.             
  216.             action 
  217.             { 
  218.                 play "sound/misc/menus/select.wav" ; 
  219.  
  220.                 ui_script FindPlayer 
  221.             }
  222.             mouseEnter 
  223.             { 
  224.                 play "sound/misc/menus/hilite1.wav" ; 
  225.                 setitemcolor search_button backcolor .12 .14 .08 1
  226.                 setitemcolor search_button forecolor .49 .56 .27 1
  227.             }                 
  228.             mouseExit 
  229.             { 
  230.                 setitemcolor search_button backcolor 0 0 0 0
  231.                 setitemcolor search_button forecolor .12 .14 .08 1
  232.             }
  233.         }
  234.  
  235.  
  236.         itemDef 
  237.         {
  238.             name        join_button
  239.             text        "Join"
  240.             textfont    "hud"
  241.             textscale    .43
  242.             type        ITEM_TYPE_BUTTON
  243.             style        WINDOW_STYLE_FILLED
  244.             rect        435 378 60 26
  245.             textalign    0
  246.             textalignx    12
  247.             textaligny    4
  248.             forecolor    .12 .14 .08 1
  249.             backcolor    0 0 0 0
  250.             border        1
  251.             bordercolor    0 0 0 1
  252.             visible 1
  253.             
  254.             action 
  255.             { 
  256.                 play "sound/misc/menus/select.wav" ; 
  257.  
  258.                 ui_script FoundPlayerJoinServer 
  259.             }
  260.             mouseEnter 
  261.             { 
  262.                 play "sound/misc/menus/hilite1.wav" ; 
  263.                 setitemcolor join_button backcolor .12 .14 .08 1
  264.                 setitemcolor join_button forecolor .49 .56 .27 1
  265.             }                 
  266.             mouseExit 
  267.             { 
  268.                 setitemcolor join_button backcolor 0 0 0 0
  269.                 setitemcolor join_button forecolor .12 .14 .08 1
  270.             }
  271.     }
  272. }
  273. }
  274.  
  275.  
  276.